package com.party.service.lodge;

/**
 * Created with IntelliJ IDEA.
 * User: beyond
 * Date: 14-9-18
 * Time: 下午10:37
 * To change this template use File | Settings | File Templates.
 */

import com.party.common.Page;
import com.party.model.Lodge;

import java.util.List;

/**
 * 党支部
 */
public interface LodgeService {
    /**
     * 党支部
     * 增删改查
     */
    public int addLodge(Lodge lodge);

    public int deleteLodgeByPrimaryKey(Integer id);

    public int deleteLodgeByIds(String ids);

    public Lodge getLodgeByPrimaryKey(Integer id);

    public int updateLodgeByPrimaryKey(Lodge lodge);

    /**
     * 获得党支部数据列表（分页）
     * @param pageSize
     * @param pageNumber
     * @return
     */
    public Page getLodgeList(Lodge lodge, int pageSize, int pageNumber);

    public List<Lodge> getAllLodge();
}
